<?php

class Application_Model_Clientes
{
	protected $_id_clientes;
    protected $_nombre;
    protected $_apellidos;
    protected $_nif;
    protected $_direccion;
    protected $_dire_num;
    protected $_dire_piso;
    protected $_dire_puerta;
    protected $_dire_cp;
    protected $_poblacion;
    protected $_provincia;
    protected $_pais;
    protected $_telefono;
    protected $_telefono2;
    protected $_fax;
    protected $_mail;
    protected $_cod_tipo_clie;
    protected $_empresa;
    protected $_url;
    protected $_descuento;
    protected $_fecha_alta;
    protected $_fecha_baja;
    protected $_activo;
    protected $_eliminado;
 
    public function __construct(array $options = null)
    {
        if (is_array($options)) {
            $this->setOptions($options);
        }
    }
 
    public function __set($name, $value)
    {
        $method = 'set' . $name;
        if (('mapper' == $name) || !method_exists($this, $method)) {
            throw new Exception('Invalid clientes property');
        }
        $this->$method($value);
    }
 
    public function __get($name)
    {
        $method = 'get' . $name;
        if (('mapper' == $name) || !method_exists($this, $method)) {
            throw new Exception('La propiedad no existe en la clase Application_Model_Clientes');
        }
        return $this->$method();
    }
 
    public function setOptions(array $options)
    {
        $methods = get_class_methods($this);
        foreach ($options as $key => $value) {
            $method = 'set' . ucfirst($key);
            if (in_array($method, $methods)) {
                $this->$method($value);
            }
        }
        return $this;
    }
 
	public function setId_clientes($text)
    {
        $this->_id_clientes = (string) $text;
        return $this;
    }
 
    public function getId_clientes()
    {
        return $this->_id_clientes;
    }
 
    public function setNombre($text)
    {
        $this->_nombre = (string) $text;
        return $this;
    }
 
    public function getNombre()
    {
        return $this->_nombre;
    }
 	
	public function setApellidos($text)
    {
        $this->_apellidos = (string) $text;
        return $this;
    }
 
    public function getApellidos()
    {
        return $this->_apellidos;
    }
    
	public function setNif($text)
    {
        $this->_nif = (string) $text;
        return $this;
    }
 
    public function getNif()
    {
        return $this->_nif;
    }
    
	public function setDireccion($text)
    {
        $this->_direccion = (string) $text;
        return $this;
    }
 
    public function getDireccion()
    {
        return $this->_direccion;
    }
    
	public function setDire_num($text)
    {
        $this->_dire_num = (string) $text;
        return $this;
    }
 
    public function getDire_num()
    {
        return $this->_dire_num;
    }
    
	public function setDire_piso($text)
    {
        $this->_dire_piso = (string) $text;
        return $this;
    }
 
    public function getDire_piso()
    {
        return $this->_dire_piso;
    }
    
	public function setDire_puerta($text)
    {
        $this->_dire_puerta = (string) $text;
        return $this;
    }
 
    public function getDire_puerta()
    {
        return $this->_dire_puerta;
    }
    
	public function setDire_cp($text)
    {
        $this->_dire_cp = (string) $text;
        return $this;
    }
 
    public function getDire_cp()
    {
        return $this->_dire_cp;
    }
    
	public function setPoblacion($text)
    {
        $this->_poblacion = (string) $text;
        return $this;
    }
 
    public function getPoblacion()
    {
        return $this->_poblacion;
    }
    
	public function setProvincia($text)
    {
        $this->_provincia = (string) $text;
        return $this;
    }
 
    public function getProvincia()
    {
        return $this->_provincia;
    }
    
	public function setPais($text)
    {
        $this->_pais = (string) $text;
        return $this;
    }
 
    public function getPais()
    {
        return $this->_pais;
    }
    
	public function setTelefono($text)
    {
        $this->_telefono = (string) $text;
        return $this;
    }
 
    public function getTelefono()
    {
        return $this->_telefono;
    }
    
	public function setTelefono2($text)
    {
        $this->_telefono2 = (string) $text;
        return $this;
    }
 
    public function getTelefono2()
    {
        return $this->_telefono2;
    }
    
	public function setFax($text)
    {
        $this->_fax = (string) $text;
        return $this;
    }
 
    public function getFax()
    {
        return $this->_fax;
    }
    
	public function setMail($text)
    {
        $this->_mail = (string) $text;
        return $this;
    }
 
    public function getMail()
    {
        return $this->_mail;
    }
	
	public function setCod_tipo_clie($text)
    {
        $this->_cod_tipo_clie = (string) $text;
        return $this;
    }
 
    public function getCod_tipo_clie()
    {
        return $this->_cod_tipo_clie;
    }
    
	public function setEmpresa($text)
    {
        $this->_empresa = (string) $text;
        return $this;
    }
 
    public function getEmpresa()
    {
        return $this->_empresa;
    }
    
	public function setUrl($text)
    {
        $this->_url = (string) $text;
        return $this;
    }
 
    public function getUrl()
    {
        return $this->_url;
    }
    
	public function setDescuento($text)
    {
        $this->_descuento = (string) $text;
        return $this;
    }
 
    public function getDescuento()
    {
        return $this->_descuento;
    }
    
	public function setFecha_alta($text)
    {
        $this->_fecha_alta = (string) $text;
        return $this;
    }
 
    public function getFecha_alta()
    {
        return $this->_fecha_alta;
    }
    
	public function setFecha_baja($text)
    {
        $this->_fecha_baja = (string) $text;
        return $this;
    }
 
    public function getFecha_baja()
    {
        return $this->_fecha_baja;
    }
    
	public function setActivo($text)
    {
        $this->_activo = (string) $text;
        return $this;
    }
 
    public function getActivo()
    {
        return $this->_activo;
    }
    
	public function setEliminado($text)
    {
        $this->_eliminado = (string) $text;
        return $this;
    }
 
    public function getEliminado()
    {
        return $this->_eliminado;
    }
    

}

